package VN.EDU.IMIC.DEVELOPER.TRINHCAOSANG.BaiTapObject.Exc1;

public class LoginControllers {
    private final UserData muserData;
    private final Model model;

    public LoginControllers(UserData userData) {
        this.muserData = userData;

        model = new Model();
    }

    public boolean CheckUserInfo() {
        if (model.CheckData(muserData)) {
            if (model.CheckActive(muserData)) {
                if (model.CheckTimeRemain(muserData)) {
                    if (model.CheckLocked(muserData)) {
                        return true;
                    } else {
                        return false;
                    }
                } else {
                    return false;
                }
            } else {
                return false;
            }

        } else {
            return false;
        }

    }
}


